package com.chixing.day04_oop;
import  java.util.Arrays;
public class Bank {
    private Account[] accountArr =new Account[50];


    public Account[] registAccount(Account account  ){
        for (int i = 0;i<50;i++){
            accountArr[i] = account;
        }
        return accountArr;
    }
    @Override
    public String toString() {
        return "Bank{" +
                "accountArr=" + Arrays.toString(accountArr) +
                '}';
    }
}
